package c.e.a.c.c;

import android.animation.TypeEvaluator;
import c.b.a.a.a;
import com.pgl.sys.ces.out.ISdkLite;

/* compiled from: ArgbEvaluatorCompat */
public class b implements TypeEvaluator<Integer> {
    public static final b a = new b();

    public Object evaluate(float f, Object obj, Object obj2) {
        Integer num = (Integer) obj2;
        int intValue = ((Integer) obj).intValue();
        float f2 = ((float) ((intValue >> 24) & ISdkLite.REGION_UNSET)) / 255.0f;
        float f3 = ((float) ((intValue >> 16) & ISdkLite.REGION_UNSET)) / 255.0f;
        float f4 = ((float) ((intValue >> 8) & ISdkLite.REGION_UNSET)) / 255.0f;
        float f5 = ((float) (intValue & ISdkLite.REGION_UNSET)) / 255.0f;
        int intValue2 = num.intValue();
        float f6 = ((float) ((intValue2 >> 24) & ISdkLite.REGION_UNSET)) / 255.0f;
        float f7 = ((float) ((intValue2 >> 16) & ISdkLite.REGION_UNSET)) / 255.0f;
        float f8 = ((float) ((intValue2 >> 8) & ISdkLite.REGION_UNSET)) / 255.0f;
        f3 = (float) Math.pow((double) f3, 2.2d);
        f4 = (float) Math.pow((double) f4, 2.2d);
        f5 = (float) Math.pow((double) f5, 2.2d);
        f7 = (float) Math.pow((double) f7, 2.2d);
        f8 = (float) Math.pow((double) f8, 2.2d);
        float pow = (float) Math.pow((double) (((float) (intValue2 & ISdkLite.REGION_UNSET)) / 255.0f), 2.2d);
        f2 = a.a(f6, f2, f, f2);
        f3 = a.a(f7, f3, f, f3);
        f4 = a.a(f8, f4, f, f4);
        f = a.a(pow, f5, f, f5);
        int round = Math.round(f2 * 255.0f) << 24;
        return Integer.valueOf(Math.round(((float) Math.pow((double) f, 0.45454545454545453d)) * 255.0f) | (((Math.round(((float) Math.pow((double) f3, 0.45454545454545453d)) * 255.0f) << 16) | round) | (Math.round(((float) Math.pow((double) f4, 0.45454545454545453d)) * 255.0f) << 8)));
    }
}
